package com.sinog.biz.mapper.havexml.other;

import com.sinog.core.domain.XjReceipt;
import com.sinog.core.model.LiuChengHcAndMainVo;
import org.apache.ibatis.annotations.Param;

/**
 * @desc 推送回执旧数据修复
 * @author ypc
 * @date 2022/9/13
 */
public interface LiuChengOldDataMapper {

    /**
     * 查询罪犯编号对应的字段
     * @param priNum priNum
     * @return LiuChengHcAndMainVo
     */
    LiuChengHcAndMainVo hcWc(@Param("priNum") String priNum);

    /**
     * 往推送表中插入推送ID和ID
     * @param liuChengHcAndMainVo
     */
    void insertTs(LiuChengHcAndMainVo liuChengHcAndMainVo);

    /**
     * 往衔接中间表插入信息
     * @param xjReceipt 衔接回执中间表实体
     */
    void insertXj(XjReceipt xjReceipt);

    /**
     * 修改核查表的XjrctId为推送的ID
     * @param tsId 推送id
     * @param priNum priNum
     */
    void updateHcXjrctId(@Param("tsId") String tsId,@Param("priNum") String priNum);

    /**
     * 根据main表的departId/pdanweiId/addUserId查询当前用户
     * @param departId 部门id
     * @return String 账户名称
     */
    String selectAccount(@Param("departId") String departId);
}